layui.use(['layer'],function () {
    var $=layui.jquery,layer=layui.layer;
    $(".btn-add").on("click",function () {
        var pid=$("input[name='pid']").val();
        layer.open({
            type: 2,
            title: '添加节点',
            shadeClose: true,
            shade: 0.2,
            maxmin: true, //开启最大化最小化按钮
            area: ['90%', '90%'],
            content: '/uc/organization/open/child/entity?pid='+pid,
        });
    })
});